//
//  YYRPopupAction.h
//  SISSAPP
//
//  Created by 袁应荣 on 2019/7/8.
//  Copyright © 2019 优房网. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef NS_ENUM(NSInteger, YYRPopupActionStyle) {
    YYRPopupActionStyleDefault,
    YYRPopupActionStyleCancel,
    YYRPopupActionStyleDestructive
};
NS_ASSUME_NONNULL_BEGIN

@interface YYRPopupAction : NSObject

/// action 标题
@property (nonatomic, copy)NSString *title;

/// action 事件
@property (nonatomic, copy)void (^handler) ();

/// action 风格
@property (nonatomic, assign) YYRPopupActionStyle style;

/**
 创建一个 action

 @param title 标题
 @param style 风格
 @param handler 回调
 @return
 */
+ (instancetype)actionWithTitle:(NSString *)title style:(YYRPopupActionStyle)style handler:(void(^)())handler;

@end

NS_ASSUME_NONNULL_END
